from django.db import models
from django.contrib.auth.models import User

# Create your models here.

class VerificationCode(models.Model):
    """验证码模型"""
    code = models.CharField(max_length=10, verbose_name='验证码')
    created_at = models.DateTimeField(auto_now_add=True, verbose_name='创建时间')
    expired_at = models.DateTimeField(verbose_name='过期时间')
    
    class Meta:
        verbose_name = '验证码'
        verbose_name_plural = verbose_name
        
    def __str__(self):
        return self.code
